﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="TB_DJSKCBD.aspx.cs" Inherits="SkWeb.FYCS.TB_DJSKCBD" %>

<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>单井射孔成本</title>
    <link href="../../css/adminCss.css" rel="stylesheet" type="text/css" />
    <script src="../js/calendar.js" type="text/javascript"></script>
</head>
<body>
    <form id="form1" runat="server">
    <table width="99%" border="0" cellpadding="0" cellspacing="0">
        <tr>
            <td width="31" height="22">
                <img src="../images/module.gif" width="20" height="22" alt="" />
            </td>
            <td style="width: 310px; text-align: left;">
                &nbsp;<asp:Label ID="lblPath" runat="server"></asp:Label>
            </td>
            <td width="990" align="right">
                <img src="../images/search.gif" alt="搜索" />井号：
                    <asp:TextBox ID="txtName" runat="server" CssClass="input1"></asp:TextBox>
                    <asp:Button ID="btnSearch" runat="server" Text="搜索" CssClass="submit" CausesValidation="False"
                        OnClick="btnSearch_Click" />
            </td>
        </tr>
    </table>
    <table width="99%" border="0" cellpadding="0" cellspacing="0">
        <tr>
            <td bgcolor="#3CB6E5" height="5px">
            </td>
        </tr>
    </table>
    <table cellpadding="1" cellspacing="1" border="0" class="tabGg" width="99%">
        <tr>
            <td rowspan="23" width="10%" bgcolor="#FFFFFF" class="r_bg" style="vertical-align:top;">
                <asp:ListBox ID="lbxJH" runat="server" Width="202px" AutoPostBack="true" Height="500px"
                    Font-Size="14px"  onselectedindexchanged="lbxJH_SelectedIndexChanged" DataTextField="JH" DataValueField="ID"></asp:ListBox>
                <webdiyer:AspNetPager ID="AspNetPager1" runat="server" Width="100%" ShowPageIndex="false"
                    UrlPaging="false" NumericButtonTextFormatString="[{0}]" CustomInfoHTML=" " ShowCustomInfoSection="left"
                    CustomInfoSectionWidth="3px" FirstPageText="首页" LastPageText="末页" NextPageText="下页"
                    PageSize="100" PrevPageText="上页" Font-Names="Arial" BackColor="#C1EAF7" OnPageChanged="AspNetPager1_PageChanged"
                    Visible="true">
                </webdiyer:AspNetPager>
            </td>
        </tr>
        
        <tr>
            <th width="20%" bgcolor="#FFFFFF" class="r_bg">
                井号:
            </th>
            <td width="30%" bgcolor="#ffffff" class="l_bg">
                <asp:HiddenField ID="txtID" runat="server" />
                <asp:TextBox ID="txtJH" runat="server" />
                <asp:RequiredFieldValidator ID="JH_Null_Check" runat="server" Width="5px" ControlToValidate="txtJH"
                    Display="Dynamic" ErrorMessage="井号不能为空" Height="5px">*</asp:RequiredFieldValidator>
            </td>
            <th width="20%" bgcolor="#FFFFFF" class="r_bg">
               设计日期:
            </th>
            <td width="30%" bgcolor="#ffffff" class="l_bg">
                 <asp:TextBox ID="txtSJRQ" runat="server" CssClass="input1" onfocus="calendar()" ></asp:TextBox>
                <asp:RequiredFieldValidator ID="SJRQ_Null_Check" runat="server" Width="5px" ControlToValidate="txtSJRQ"
                    Display="Dynamic" ErrorMessage="设计日期不能为空" Height="5px">*</asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <th width="20%" bgcolor="#FFFFFF" class="r_bg">
                施工方式:
            </th>
            <td width="30%" bgcolor="#ffffff" class="l_bg">
                <asp:TextBox ID="txtSGFS" runat="server" />
                <asp:RequiredFieldValidator ID="SGFS_Null_Check" runat="server" Width="5px" ControlToValidate="txtSGFS"
                    Display="Dynamic" ErrorMessage="施工方式不能为空" Height="5px">*</asp:RequiredFieldValidator>
            </td>
            <th width="20%" bgcolor="#FFFFFF" class="r_bg">
                类型:
            </th>
            <td width="30%" bgcolor="#ffffff" class="l_bg">
                <asp:TextBox ID="txtLX" runat="server" />
                <asp:RequiredFieldValidator ID="LX_Null_Check" runat="server" Width="5px" ControlToValidate="txtLX"
                    Display="Dynamic" ErrorMessage="类型不能为空" Height="5px">*</asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <th width="20%" bgcolor="#FFFFFF" class="r_bg">
                计数:
            </th>
            <td width="30%" bgcolor="#ffffff" class="l_bg">
                <asp:TextBox ID="txtJS" runat="server" />
                <asp:RequiredFieldValidator ID="JS_Null_Check" runat="server" Width="5px" ControlToValidate="txtJS"
                    Display="Dynamic" ErrorMessage="计数不能为空" Height="5px">*</asp:RequiredFieldValidator>
                <asp:RegularExpressionValidator ID="JS_check" runat="server" Width="5px" ControlToValidate="txtJS"
                    Display="Dynamic" ErrorMessage="基数应为数字" Height="5px" ValidationExpression="^[0-9]*$">*</asp:RegularExpressionValidator>
            </td>
            <th width="20%" bgcolor="#FFFFFF" class="r_bg">
                项目:
            </th>
            <td width="30%" bgcolor="#ffffff" class="l_bg">
                <asp:TextBox ID="txtXM" runat="server" />
                <asp:RequiredFieldValidator ID="XM_Null_Check" runat="server" Width="5px" ControlToValidate="txtXM"
                    Display="Dynamic" ErrorMessage="项目不能为空" Height="5px">*</asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <th width="20%" bgcolor="#FFFFFF" class="r_bg">
                弹型:
            </th>
            <td width="30%" bgcolor="#ffffff" class="l_bg">
                <%--<asp:TextBox ID="txtDX" runat="server" />--%>
                <asp:DropDownList ID="ddlstDX" runat="server" CssClass="input1" 
                    DataTextField="SK_XM_MX" AutoPostBack="true" DataValueField="ID" 
                    onselectedindexchanged="ddlstDX_SelectedIndexChanged">
                    <asp:ListItem Value="">请选择</asp:ListItem>
                </asp:DropDownList>
                <input type="hidden" id="hidJG" runat="server" />
                <asp:RequiredFieldValidator ID="DX_Null_Check" runat="server" Width="5px" ControlToValidate="ddlstDX"
                    Display="Dynamic" ErrorMessage="弹型不能为空" Height="5px">*</asp:RequiredFieldValidator>
            </td>
            <th width="20%" bgcolor="#FFFFFF" class="r_bg">
                枪型:
            </th>
            <td width="30%" bgcolor="#ffffff" class="l_bg">
                <script type="text/javascript">
                    function GetQXXM() {
                        var XM = document.getElementById("txtXM").value;

                        var QX = document.getElementById("txtQX").value;

                        var he = XM + QX;
                        document.getElementById("txtXM").value = he;
                    }
            </script>

                <asp:TextBox ID="txtQX" runat="server" onblur="GetQXXM()" />
                <asp:RequiredFieldValidator ID="QX_Null_Check" runat="server" Width="5px" ControlToValidate="txtQX"
                    Display="Dynamic" ErrorMessage="枪型不能为空" Height="5px">*</asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <th width="20%" bgcolor="#FFFFFF" class="r_bg">
                周艳丽枪型:
            </th>
            <td width="30%" bgcolor="#ffffff" class="l_bg">
                <asp:TextBox ID="txtZYLQX" runat="server" />
                <asp:RequiredFieldValidator ID="ZYLQX_Null_Check" runat="server" Width="5px" ControlToValidate="txtZYLQX"
                    Display="Dynamic" ErrorMessage="周艳丽枪型不能为空" Height="5px">*</asp:RequiredFieldValidator>
            </td>
            <th width="20%" bgcolor="#FFFFFF" class="r_bg">
                复合类型:
            </th>
            <td width="30%" bgcolor="#ffffff" class="l_bg">
            <script type="text/javascript">
                function GetFHXM() {
                    var XM = document.getElementById("txtXM").value;

                    var FHLX = document.getElementById("txtFHLX").value;

                    var he = XM + FHLX;
                    document.getElementById("txtXM").value = he;
                }
            </script>
                <asp:TextBox ID="txtFHLX" runat="server" onblur="GetFHXM()" />
                <asp:RequiredFieldValidator ID="FHLX_Null_Check" runat="server" Width="5px" ControlToValidate="txtFHLX"
                    Display="Dynamic" ErrorMessage="复合类型不能为空" Height="5px">*</asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <th width="20%" bgcolor="#FFFFFF" class="r_bg">
                结算类型:
            </th>
            <td width="30%" bgcolor="#ffffff" class="l_bg">
                <asp:TextBox ID="txtJSLX" runat="server" />
                <asp:RequiredFieldValidator ID="JSLX_Null_Check" runat="server" Width="5px" ControlToValidate="txtJSLX"
                    Display="Dynamic" ErrorMessage="结算类型不能为空" Height="5px">*</asp:RequiredFieldValidator>
            </td>
            <th width="20%" bgcolor="#FFFFFF" class="r_bg">
                车辆路途费:
            </th>
            <td width="30%" bgcolor="#ffffff" class="l_bg">
                <asp:TextBox ID="txtCLLTF" runat="server"></asp:TextBox>
                <asp:RegularExpressionValidator ID="RegularExpressionValidator6" runat="server" Width="5px" ControlToValidate="txtCLLTF"
                    Display="Dynamic" ErrorMessage="车辆路途费应为数字" Height="5px" ValidationExpression="^[0-9]*$">*</asp:RegularExpressionValidator>
            </td>
        </tr>
        <tr>
            <th width="20%" bgcolor="#FFFFFF" class="r_bg">
                单井收入:
            </th>
            <td width="30%" bgcolor="#ffffff" class="l_bg">
                <asp:TextBox ID="txtDJSR" runat="server" onblur="getYY()" ReadOnly="true" />
                <asp:RequiredFieldValidator ID="DJSR_Null_Check" runat="server" Width="5px" ControlToValidate="txtDJSR"
                    Display="Dynamic" ErrorMessage="单井收入不能为空" Height="5px">*</asp:RequiredFieldValidator>
            </td>
            <th width="20%" bgcolor="#FFFFFF" class="r_bg">
                射开厚度:
            </th>
            <td width="30%" bgcolor="#ffffff" class="l_bg">
                <script type="text/javascript">
                    function GetDJSRHe() {
                        var JG = document.getElementById("hidJG").value;
                        if (JG == "") {
                            JG = 0;
                        }
                        var SKHD = document.getElementById("txtSKHD").value;
                        if (SKHD == "") {
                            SKHD = 0;
                        }
                        document.getElementById("txtSKHD2").value = SKHD;
                        var CLLTF = document.getElementById("txtCLLTF").value;
                        if (CLLTF == "") {
                            CLLTF = 0;
                        }
                        var he = parseFloat(JG) * parseFloat(SKHD) + parseFloat(CLLTF);
                        he = he.toFixed(2);
                        document.getElementById("txtDJSR").value = he;
                    }
            </script>
                <asp:TextBox ID="txtSKHD" runat="server" onblur="GetDJSRHe()" />
                <asp:RequiredFieldValidator ID="SKHD_Null_Check" runat="server" Width="5px" ControlToValidate="txtSKHD"
                    Display="Dynamic" ErrorMessage="射开厚度不能为空" Height="5px">*</asp:RequiredFieldValidator>
                <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" Width="5px" ControlToValidate="txtSKHD"
                    Display="Dynamic" ErrorMessage="射开厚度应为数字，可以保留两位小数" Height="5px" ValidationExpression="^[0-9]+(.[0-9]{2})?$">*</asp:RegularExpressionValidator>
            </td>
        </tr>
        <tr>
            <th width="20%" bgcolor="#FFFFFF" class="r_bg">
                弹数（发）:
            </th>
            <td width="30%" bgcolor="#ffffff" class="l_bg">
                <asp:TextBox ID="txtDS" runat="server"  onblur="GetDHe();" />
                <asp:RequiredFieldValidator ID="DS_Null_Check" runat="server" Width="5px" ControlToValidate="txtDS"
                    Display="Dynamic" ErrorMessage="弹数不能为空" Height="5px">*</asp:RequiredFieldValidator>
                <asp:RegularExpressionValidator ID="RegularExpressionValidator3" runat="server" Width="5px" ControlToValidate="txtDS"
                    Display="Dynamic" ErrorMessage="弹数应为数字" Height="5px" ValidationExpression="^[0-9]*$">*</asp:RegularExpressionValidator>
            </td>
            <th width="20%" bgcolor="#FFFFFF" class="r_bg">
                弹单价（元）:
            </th>
            <td width="30%" bgcolor="#ffffff" class="l_bg">
            
                <asp:TextBox ID="txtDDJ" runat="server" onblur="GetDHe();" />
                <asp:RequiredFieldValidator ID="DDJ_Null_Check" runat="server" Width="5px" ControlToValidate="txtDDJ"
                    Display="Dynamic" ErrorMessage="弹单价不能为空" Height="5px">*</asp:RequiredFieldValidator>
                <asp:RegularExpressionValidator ID="RegularExpressionValidator4" runat="server" Width="5px" ControlToValidate="txtDDJ"
                    Display="Dynamic" ErrorMessage="弹单价应为数字，可以保留两位小数" Height="5px" ValidationExpression="^[0-9]+(.[0-9]{2})?$">*</asp:RegularExpressionValidator>
            </td>
        </tr>
        <tr>
            <th width="20%" bgcolor="#FFFFFF" class="r_bg">
                弹金额（元）:
            </th>
            <td width="30%" bgcolor="#ffffff" class="l_bg">
                <script type="text/javascript">
                function GetDHe() {
                    var DS = document.getElementById("txtDS").value; 
                    if(DS=="")
                    {
                    DS=0;
                    }
                    var DDJ = document.getElementById("txtDDJ").value;
                    if(DDJ=="")
                    {
                    DDJ=0;
                    }
                    var he = parseFloat(DS) * parseFloat(DDJ);
                    he = he.toFixed(2);
                    document.getElementById("txtDJE").value = he;
                    document.getElementById("txtDJESZ").value =he;
                }
            </script>
                <asp:TextBox ID="txtDJE" runat="server"  ReadOnly="true"/>
            </td>
            <th width="20%" bgcolor="#FFFFFF" class="r_bg">
                弹金额（数值）:
            </th>
            <td width="30%" bgcolor="#ffffff" class="l_bg">
                <asp:TextBox ID="txtDJESZ" runat="server"   ReadOnly="true"/>
            </td>
        </tr>
        <tr>
            <th width="20%" bgcolor="#FFFFFF" class="r_bg">
                枪长（米）:
            </th>
            <td width="30%" bgcolor="#ffffff" class="l_bg">
                <asp:TextBox ID="txtQC" runat="server" onblur="GetCHe();"/>
                <asp:RequiredFieldValidator ID="QC_Null_Check" runat="server" Width="5px" ControlToValidate="txtQC"
                    Display="Dynamic" ErrorMessage="枪长不能为空" Height="5px">*</asp:RequiredFieldValidator>
                <asp:RegularExpressionValidator ID="RegularExpressionValidator7" runat="server" Width="5px" ControlToValidate="txtQC"
                    Display="Dynamic" ErrorMessage="枪长应为数字，可以保留两位小数" Height="5px" ValidationExpression="^[0-9]+(.[0-9]{2})?$">*</asp:RegularExpressionValidator>
            </td>
            <th width="20%" bgcolor="#FFFFFF" class="r_bg">
                枪单价（元/米）:
            </th>
            <td width="30%" bgcolor="#ffffff" class="l_bg">
                <asp:TextBox ID="txtQDJ" runat="server" onblur="GetCHe();"/>
                <asp:RequiredFieldValidator ID="QDJ_Null_Check" runat="server" Width="5px" ControlToValidate="txtQDJ"
                    Display="Dynamic" ErrorMessage="枪单价不能为空" Height="5px">*</asp:RequiredFieldValidator>
                <asp:RegularExpressionValidator ID="RegularExpressionValidator8" runat="server" Width="5px" ControlToValidate="txtQDJ"
                    Display="Dynamic" ErrorMessage="枪单价应为数字，可以保留两位小数" Height="5px" ValidationExpression="^[0-9]+(.[0-9]{2})?$">*</asp:RegularExpressionValidator>
            </td>
        </tr>
        <tr>
            <th width="20%" bgcolor="#FFFFFF" class="r_bg">
                枪长2（米）:
            </th>
            <td width="30%" bgcolor="#ffffff" class="l_bg">
                <asp:TextBox ID="txtQC2" runat="server" onblur="GetCHe();"/>
                <asp:RequiredFieldValidator ID="QC2_Null_Check" runat="server" Width="5px" ControlToValidate="txtQC2"
                    Display="Dynamic" ErrorMessage="枪长2不能为空" Height="5px">*</asp:RequiredFieldValidator>
                <asp:RegularExpressionValidator ID="RegularExpressionValidator9" runat="server" Width="5px" ControlToValidate="txtQC2"
                    Display="Dynamic" ErrorMessage="枪长2应为数字，可以保留两位小数" Height="5px" ValidationExpression="^[0-9]+(.[0-9]{2})?$">*</asp:RegularExpressionValidator>
            </td>
            <th width="20%" bgcolor="#FFFFFF" class="r_bg">
                枪单价2（元/米）:
            </th>
            <td width="30%" bgcolor="#ffffff" class="l_bg">
                <asp:TextBox ID="txtQDJ2" runat="server" onblur="GetCHe();"/>
                <asp:RequiredFieldValidator ID="QDJ2_Null_Check" runat="server" Width="5px" ControlToValidate="txtQDJ2"
                    Display="Dynamic" ErrorMessage="枪单价2不能为空" Height="5px">*</asp:RequiredFieldValidator>
                <asp:RegularExpressionValidator ID="RegularExpressionValidator10" runat="server" Width="5px" ControlToValidate="txtQDJ2"
                    Display="Dynamic" ErrorMessage="枪单价2应为数字，可以保留两位小数" Height="5px" ValidationExpression="^[0-9]+(.[0-9]{2})?$">*</asp:RegularExpressionValidator>
            </td>
        </tr>
        <tr>
            <th width="20%" bgcolor="#FFFFFF" class="r_bg">
                枪金额:
            </th>
            <td width="30%" bgcolor="#ffffff" class="l_bg">
                <script type="text/javascript">
                function GetCHe() {
                    var QC = document.getElementById("txtQC").value; 
                    if(QC=="")
                    {
                    QC=0;
                    }
                    var QDJ = document.getElementById("txtQDJ").value;
                    if(QDJ=="")
                    {
                    QDJ=0;
                    }
                    var QC2 = document.getElementById("txtQC2").value; 
                    if(QC2=="")
                    {
                    QC2=0;
                    }
                    var QDJ2 = document.getElementById("txtQDJ2").value;
                    if(QDJ2=="")
                    {
                    QDJ2=0;
                    }
                    var he = parseFloat(QC) * parseFloat(QDJ);
                    
                    var he2 = parseFloat(QC2) * parseFloat(QDJ2);
                    
                    var zonghe = parseFloat(he)+parseFloat(he2);
                    zonghe = zonghe.toFixed(2);
                    document.getElementById("txtQJE").value =zonghe;
                    document.getElementById("txtQJESZ").value =zonghe;
                }
            </script>
                <asp:TextBox ID="txtQJE" runat="server" Height="18px"  ReadOnly="true"/>
            </td>
            <th width="20%" bgcolor="#FFFFFF" class="r_bg">
                枪金额数值:
            </th>
            <td width="30%" bgcolor="#ffffff" class="l_bg">
                <asp:TextBox ID="txtQJESZ" runat="server"  ReadOnly="true" />
            </td>
        </tr>
        <tr>
            <th width="20%" bgcolor="#FFFFFF" class="r_bg">
                夹层枪长（米）:
            </th>
            <td width="30%" bgcolor="#ffffff" class="l_bg">
                <asp:TextBox ID="txtJCQC" runat="server" onblur="GetJCQHe()" />
                <asp:RequiredFieldValidator ID="JCQC_Null_Check" runat="server" Width="5px" ControlToValidate="txtJCQC"
                    Display="Dynamic" ErrorMessage="夹层枪长不能为空" Height="5px">*</asp:RequiredFieldValidator>
                <asp:RegularExpressionValidator ID="RegularExpressionValidator11" runat="server" Width="5px" ControlToValidate="txtJCQC"
                    Display="Dynamic" ErrorMessage="夹层枪长应为数字，可以保留两位小数" Height="5px" ValidationExpression="^[0-9]+(.[0-9]{2})?$">*</asp:RegularExpressionValidator>
            </td>
            <th width="20%" bgcolor="#FFFFFF" class="r_bg">
                夹层枪单价（米/元）:
            </th>
            <td width="30%" bgcolor="#ffffff" class="l_bg">
                <asp:TextBox ID="txtJCQDJ" runat="server" onblur="GetJCQHe()"/>
                <asp:RequiredFieldValidator ID="JCQDJ_Null_Check" runat="server" Width="5px" ControlToValidate="txtJCQDJ"
                    Display="Dynamic" ErrorMessage="夹层枪单价不能为空" Height="5px">*</asp:RequiredFieldValidator>
                <asp:RegularExpressionValidator ID="RegularExpressionValidator12" runat="server" Width="5px" ControlToValidate="txtJCQDJ"
                    Display="Dynamic" ErrorMessage="夹层枪单价应为数字，可以保留两位小数" Height="5px" ValidationExpression="^[0-9]+(.[0-9]{2})?$">*</asp:RegularExpressionValidator>
            </td>
        </tr>
        <tr>
            <th width="20%" bgcolor="#FFFFFF" class="r_bg">
                夹层枪金额（元）:
            </th>
            <td width="30%" bgcolor="#ffffff" class="l_bg"> 
                <script type="text/javascript">
                function GetJCQHe() {
                    var JCQC = document.getElementById("txtJCQC").value; 
                    if(JCQC=="")
                    {
                    JCQC=0;
                    }
                    var JCQDJ = document.getElementById("txtJCQDJ").value;
                    if(JCQDJ=="")
                    {
                    JCQDJ=0;
                    }
                    
                    var he = parseFloat(JCQC) * parseFloat(JCQDJ);
                    
                    he = he.toFixed(2);
                    document.getElementById("txtJCQJE").value =he;
                    document.getElementById("txtJCQJESZ").value =he;
                }
            </script>
                <asp:TextBox ID="txtJCQJE" runat="server" ReadOnly="true" onblur="getQDheji()" />
            </td>
            <th width="20%" bgcolor="#FFFFFF" class="r_bg">
                枪、弹合计金额（元）:
            </th>
            <td width="30%" bgcolor="#ffffff" class="l_bg">
            <script type="text/javascript">
                function getQDheji()
                {
                    var QJE =  document.getElementById("txtQJE").value;
                    if(QJE=="")
                     {QJE=0;}
                    var JCQJE = document.getElementById("txtJCQJE").value;
                    if(JCQJE=="")
                     {JCQJE=0;}
                    var DJE =document.getElementById("txtDJE").value;
                    if(DJE=="")
                     {DJE=0;}
                    var zonghe = parseFloat(QJE)+parseFloat(JCQJE)+parseFloat(DJE);
                     zonghe = zonghe.toFixed(2);
                     document.getElementById("txtQDHJJE").value =zonghe;
                }
            </script>
                <asp:TextBox ID="txtQDHJJE" runat="server" onblur="getDJCLCB()" ReadOnly="true" />
            </td>
        </tr>
        <tr>
            <th width="20%" bgcolor="#FFFFFF" class="r_bg">
                夹层枪金额（数值）:
            </th>
            <td width="30%" bgcolor="#ffffff" class="l_bg">
                <asp:TextBox ID="txtJCQJESZ" runat="server" ReadOnly="true" />
            </td>
            <th width="20%" bgcolor="#FFFFFF" class="r_bg">
                爆炸器材单井消耗(元):
            </th>
            <td width="30%" bgcolor="#ffffff" class="l_bg">
                <asp:TextBox ID="txtBZQCDJXH" runat="server" onblur="getDJCLCB()" />
                <asp:RequiredFieldValidator ID="BZQCDJXH_Null_Check" runat="server" Width="5px" ControlToValidate="txtBZQCDJXH"
                    Display="Dynamic" ErrorMessage="爆炸器材单井消耗不能为空" Height="5px">*</asp:RequiredFieldValidator>
                <asp:RegularExpressionValidator ID="RegularExpressionValidator13" runat="server" Width="5px" ControlToValidate="txtBZQCDJXH"
                    Display="Dynamic" ErrorMessage="爆炸器材单井消耗应为数字，可以保留两位小数" Height="5px" ValidationExpression="^[0-9]+(.[0-9]{2})?$">*</asp:RegularExpressionValidator>
            </td>
        </tr>
        <tr>
            <th width="20%" bgcolor="#FFFFFF" class="r_bg">
                一般材料单井消耗（元）:
            </th>
            <td width="30%" bgcolor="#ffffff" class="l_bg">
                <script type="text/javascript">
                    function getPTYBCL() {
                        var YBCLDJXH = document.getElementById("txtYBCLDJXH").value;
                        if (YBCLDJXH == "")
                        { YBCLDJXH = 0; }
                        var SGFS = document.getElementById("txtSGFS").value;
                        if (SGFS != "" && SGFS == "复合管输")
                        { SGFS = 2120.92; }
                        else {
                            SGFS = 0;
                        }

                        var zonghe = parseFloat(YBCLDJXH) + parseFloat(SGFS);
                        zonghe = zonghe.toFixed(2);
                        document.getElementById("txtPTYBCL").value = zonghe;
                    }
            </script>

                <asp:TextBox ID="txtYBCLDJXH" runat="server" onblur="getPTYBCL()" />
                <asp:RequiredFieldValidator ID="YBCLDJXH_Null_Check" runat="server" Width="5px" ControlToValidate="txtYBCLDJXH"
                    Display="Dynamic" ErrorMessage="一般材料单井消耗不能为空" Height="5px">*</asp:RequiredFieldValidator>
                <asp:RegularExpressionValidator ID="RegularExpressionValidator14" runat="server" Width="5px" ControlToValidate="txtYBCLDJXH"
                    Display="Dynamic" ErrorMessage="一般材料单井消耗应为数字，可以保留两位小数" Height="5px" ValidationExpression="^[0-9]+(.[0-9]{2})?$">*</asp:RegularExpressionValidator>
            </td>
            <th width="20%" bgcolor="#FFFFFF" class="r_bg">
                平摊一般材料:
            </th>
            <td width="30%" bgcolor="#ffffff" class="l_bg">
                <asp:TextBox ID="txtPTYBCL" runat="server" onblur="getDJCLCB()" ReadOnly="true" />
                <asp:RequiredFieldValidator ID="PTYBCL_Null_Check" runat="server" Width="5px" ControlToValidate="txtPTYBCL"
                    Display="Dynamic" ErrorMessage="平摊一般材料不能为空" Height="5px">*</asp:RequiredFieldValidator>
                <asp:RegularExpressionValidator ID="RegularExpressionValidator15" runat="server" Width="5px" ControlToValidate="txtPTYBCL"
                    Display="Dynamic" ErrorMessage="平摊一般材料应为数字，可以保留两位小数" Height="5px" ValidationExpression="^[0-9]+(.[0-9]{2})?$">*</asp:RegularExpressionValidator>
            </td>
        </tr>
        <tr>
            <th width="20%" bgcolor="#FFFFFF" class="r_bg">
                单井材料成本（元/口）:
            </th>
            <td width="30%" bgcolor="#ffffff" class="l_bg">
                <script type="text/javascript">
                    function getDJCLCB() {
                        var QDHJJE = document.getElementById("txtQDHJJE").value;
                        if (QDHJJE == "")
                        { QDHJJE = 0; }
                        var BZQCDJXH = document.getElementById("txtBZQCDJXH").value;
                        if (BZQCDJXH == "")
                        { BZQCDJXH = 0; }
                        var PTYBCL = document.getElementById("txtPTYBCL").value;
                        if (PTYBCL == "")
                        { PTYBCL = 0; }
                        var zonghe = parseFloat(QDHJJE) + parseFloat(BZQCDJXH) + parseFloat(PTYBCL);
                        zonghe = zonghe.toFixed(2);
                        document.getElementById("txtDJCLCB").value = zonghe;
                    }
            </script>

                <asp:TextBox ID="txtDJCLCB" runat="server" ReadOnly="true"  onblur="getDJCB()" />
                <asp:RequiredFieldValidator ID="DJCLCB_Null_Check" runat="server" Width="5px" ControlToValidate="txtDJCLCB"
                    Display="Dynamic" ErrorMessage="单井材料成本不能为空" Height="5px">*</asp:RequiredFieldValidator>
            </td>
            <th width="20%" bgcolor="#FFFFFF" class="r_bg">
                固定费用:
            </th>
            <td width="30%" bgcolor="#ffffff" class="l_bg">
                <asp:TextBox ID="txtGDFY" runat="server" onblur="getDJCB()" />
                <asp:RequiredFieldValidator ID="GDFY_Null_Check" runat="server" Width="5px" ControlToValidate="txtGDFY"
                    Display="Dynamic" ErrorMessage="固定费用不能为空" Height="5px">*</asp:RequiredFieldValidator>
                <asp:RegularExpressionValidator ID="RegularExpressionValidator17" runat="server" Width="5px" ControlToValidate="txtGDFY"
                    Display="Dynamic" ErrorMessage="固定费用应为数字，可以保留两位小数" Height="5px" ValidationExpression="^[0-9]+(.[0-9]{2})?$">*</asp:RegularExpressionValidator>
            </td>
        </tr>
        <tr>
            <th width="20%" bgcolor="#FFFFFF" class="r_bg">
                折旧费:
            </th>
            <td width="30%" bgcolor="#ffffff" class="l_bg">
                <asp:TextBox ID="txtZJF" runat="server"  onblur="getDJCB()"/>
                <asp:RequiredFieldValidator ID="ZJF_Null_Check" runat="server" Width="5px" ControlToValidate="txtZJF"
                    Display="Dynamic" ErrorMessage="折旧费不能为空" Height="5px">*</asp:RequiredFieldValidator>
                <asp:RegularExpressionValidator ID="RegularExpressionValidator18" runat="server" Width="5px" ControlToValidate="txtZJF"
                    Display="Dynamic" ErrorMessage="折旧费应为数字，可以保留两位小数" Height="5px" ValidationExpression="^[0-9]+(.[0-9]{2})?$">*</asp:RegularExpressionValidator>
            </td>
            <th width="20%" bgcolor="#FFFFFF" class="r_bg">
                其他变动费用:
            </th>
            <td width="30%" bgcolor="#ffffff" class="l_bg">
                <asp:TextBox ID="txtQTBDFY" runat="server" onblur="getDJCB()" />
                <asp:RequiredFieldValidator ID="QTBDFY_Null_Check" runat="server" Width="5px" ControlToValidate="txtQTBDFY"
                    Display="Dynamic" ErrorMessage="其他变动费用不能为空" Height="5px">*</asp:RequiredFieldValidator>
                <asp:RegularExpressionValidator ID="RegularExpressionValidator19" runat="server" Width="5px" ControlToValidate="txtQTBDFY"
                    Display="Dynamic" ErrorMessage="其他变动费用应为数字，可以保留两位小数" Height="5px" ValidationExpression="^[0-9]+(.[0-9]{2})?$">*</asp:RegularExpressionValidator>
            </td>
        </tr>
        <tr>
            <th width="20%" bgcolor="#FFFFFF" class="r_bg">
                单井成本:
            </th>
            <td width="30%" bgcolor="#ffffff" class="l_bg">
                <script type="text/javascript">
                    function getDJCB() {
                    //单井材料成本
                        var DJCLCB = document.getElementById("txtDJCLCB").value;
                        if (DJCLCB == "")
                        { DJCLCB = 0; }
                        //固定费用
                        var GDFY = document.getElementById("txtGDFY").value;
                        if (GDFY == "")
                        { GDFY = 0; }
                        //折旧费
                        var ZJF = document.getElementById("txtZJF").value;
                        if (ZJF == "")
                        { ZJF = 0; }
                        //其他变动费用
                        var QTBDFY = document.getElementById("txtQTBDFY").value;
                        if (QTBDFY == "")
                        { QTBDFY = 0; }
                        var zonghe = parseFloat(DJCLCB) + parseFloat(GDFY) + parseFloat(ZJF) + parseFloat(QTBDFY);
                        zonghe = zonghe.toFixed(2);
                        document.getElementById("txtDJCB").value = zonghe;
                    }
            </script>

                <asp:TextBox ID="txtDJCB" runat="server"  onblur="getYY()" ReadOnly="true"/>
                <asp:RequiredFieldValidator ID="DJCB_Null_Check" runat="server" Width="5px" ControlToValidate="txtDJCB"
                    Display="Dynamic" ErrorMessage="单井成本不能为空" Height="5px">*</asp:RequiredFieldValidator>
            </td>
            <th width="20%" bgcolor="#FFFFFF" class="r_bg">
                盈余:
            </th>
            <td width="30%" bgcolor="#ffffff" class="l_bg">
                <script type="text/javascript">
                    function getYY() {
                        //单井收入
                        var DJSR = document.getElementById("txtDJSR").value;
                        if (DJSR == "")
                        { DJSR = 0; }
                        //单井成本
                        var DJCB = document.getElementById("txtDJCB").value;
                        if (DJCB == "")
                        { DJCB = 0; }
                        var zonghe = parseFloat(DJSR) + parseFloat(DJCB);
                        zonghe = zonghe.toFixed(2);
                        document.getElementById("txtYY").value = zonghe;
                    }
            </script>
                <asp:TextBox ID="txtYY" runat="server" ReadOnly="true" />
            </td>
        </tr>
        <tr>
            <th width="20%" bgcolor="#FFFFFF" class="r_bg">
                井段底深:
            </th>
            <td width="30%" bgcolor="#ffffff" class="l_bg">
                <asp:TextBox ID="txtJDDS" runat="server" />
                <asp:RequiredFieldValidator ID="JDDS_Null_Check" runat="server" Width="5px" ControlToValidate="txtJDDS"
                    Display="Dynamic" ErrorMessage="井段底深不能为空" Height="5px">*</asp:RequiredFieldValidator>
                <asp:RegularExpressionValidator ID="RegularExpressionValidator20" runat="server" Width="5px" ControlToValidate="txtJDDS"
                    Display="Dynamic" ErrorMessage="井段底深应为数字，可以保留两位小数" Height="5px" ValidationExpression="^[0-9]+(.[0-9]{2})?$">*</asp:RegularExpressionValidator>
            </td>
            <th width="20%" bgcolor="#FFFFFF" class="r_bg">
                井段顶深:
            </th>
            <td width="30%" bgcolor="#ffffff" class="l_bg">
                <asp:TextBox ID="txtJDDS1" runat="server" />
                <asp:RequiredFieldValidator ID="JDDS1_Null_Check" runat="server" Width="5px" ControlToValidate="txtJDDS1"
                    Display="Dynamic" ErrorMessage="井段顶深不能为空" Height="5px">*</asp:RequiredFieldValidator>
                <asp:RegularExpressionValidator ID="RegularExpressionValidator21" runat="server" Width="5px" ControlToValidate="txtJDDS1"
                    Display="Dynamic" ErrorMessage="井段顶深应为数字，可以保留两位小数" Height="5px" ValidationExpression="^[0-9]+(.[0-9]{2})?$">*</asp:RegularExpressionValidator>
            </td>
        </tr>
        <tr>
            <th width="20%" bgcolor="#FFFFFF" class="r_bg">
                井段:
            </th>
            <td width="30%" bgcolor="#ffffff" class="l_bg">
                <asp:TextBox ID="txtJD" runat="server" />
                <asp:RequiredFieldValidator ID="JD_Null_Check" runat="server" Width="5px" ControlToValidate="txtJD"
                    Display="Dynamic" ErrorMessage="井段不能为空" Height="5px">*</asp:RequiredFieldValidator>
                <asp:RegularExpressionValidator ID="RegularExpressionValidator22" runat="server" Width="5px" ControlToValidate="txtJD"
                    Display="Dynamic" ErrorMessage="井段应为数字，可以保留两位小数" Height="5px" ValidationExpression="^[0-9]+(.[0-9]{2})?$">*</asp:RegularExpressionValidator>
            </td>
            <th width="20%" bgcolor="#FFFFFF" class="r_bg">
                井段/射开:
            </th>
            <td width="30%" bgcolor="#ffffff" class="l_bg">
                <asp:TextBox ID="txtJDSK" runat="server" />
                <asp:RequiredFieldValidator ID="JDSK_Null_Check" runat="server" Width="5px" ControlToValidate="txtJDSK"
                    Display="Dynamic" ErrorMessage="井段/射开不能为空" Height="5px">*</asp:RequiredFieldValidator>
                <asp:RegularExpressionValidator ID="RegularExpressionValidator23" runat="server" Width="5px" ControlToValidate="txtJDSK"
                    Display="Dynamic" ErrorMessage="井段/射开应为数字，可以保留两位小数" Height="5px" ValidationExpression="^[0-9]+(.[0-9]{2})?$">*</asp:RegularExpressionValidator>
            </td>
        </tr>
        <tr>
            <th width="20%" bgcolor="#FFFFFF" class="r_bg">
                射开厚度:
            </th>
            <td width="30%" bgcolor="#ffffff" class="l_bg">
                <asp:TextBox ID="txtSKHD2" runat="server" />
                <asp:RequiredFieldValidator ID="SKHD2_Null_Check" runat="server" Width="5px" ControlToValidate="txtSKHD2"
                    Display="Dynamic" ErrorMessage="射开厚度不能为空" Height="5px">*</asp:RequiredFieldValidator>
            </td>
            <th width="20%" bgcolor="#FFFFFF" class="r_bg">
            </th>
            <td width="30%" bgcolor="#ffffff" class="l_bg">
            </td>
        </tr>
        <tr>
            <th bgcolor="#ffffff" class="r_bg">
            </th>
            <td bgcolor="#ffffff" class="right_bg" colspan="3">
                <asp:Button ID="btnAdd" runat="server" CssClass="submit" Text=" 保存 " OnClick="btnAdd_Click"/> 
                <asp:Button ID="btnReport" runat="server" CssClass="submit" Text=" 报表 " PostBackUrl="TB_DJSKCBDReport.aspx" CausesValidation="false"/>
                
            </td>
            <td bgcolor="#ffffff" class="right_bg" colspan="3">
            </td>
        </tr>
    </table>
    <p>
        &nbsp;&nbsp;
    </p>
    <p>
        <asp:Label ID="lblMsg" ForeColor="Red" runat="server" Text=""></asp:Label>
        <asp:ValidationSummary ID="ValidationSummary" EnableViewState="False" runat="server"
            DisplayMode="BulletList" HeaderText="请更正以下错误：" ShowMessageBox="True" ShowSummary="False">
        </asp:ValidationSummary>
    </p>
    <asp:HiddenField ID="hidId" runat="server" />
    </form>
</body>
</html>
